Skip to content

Speed up tests - #563

Closed
simonmar wants to merge 1 commit into
facebookincubator:mainfrom
simonmar:speedup-tests
Closed

Speed up tests#563
simonmar wants to merge 1 commit into
facebookincubator:mainfrom
simonmar:speedup-tests

Conversation

@simonmar

@simonmar simonmar commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator

We typically run each test case on at least 4 different DB flavours (memory, rocksdb, memory/stacked and rocksdb/stacked), and for each test we were recreating the exact same test DBs. To speed things up when there are multiple tests, this creates the test DBs once and shares them between all tests.

Also: moved StringTest into AngleTest, it was a bit strange to have that one test case in a test by itself.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 8, 2025
@netlify

netlify Bot commented Jul 8, 2025

Copy link
Copy Markdown

Deploy Preview for fb-oss-glean canceled.

Name Link
🔨 Latest commit e5a5270
🔍 Latest deploy log https://app.netlify.com/projects/fb-oss-glean/deploys/686fa6a971dc220008b12e45

@simonmar
simonmar force-pushed the speedup-tests branch 2 times, most recently from a0e802f to 8f02693 Compare July 9, 2025 12:37
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@iamirzhan has imported this pull request. If you are a Meta employee, you can view this in D78080251.

@simonmar

Copy link
Copy Markdown
Collaborator Author

@iamirzhan sorry this one has compile errors, let me make it a draft until it's ready.

@simonmar
simonmar marked this pull request as draft July 10, 2025 10:59
@simonmar
simonmar marked this pull request as ready for review July 10, 2025 11:34
We typically run each test case on at least 4 different DB
flavours (memory, rocksdb, memory/stacked and rocksdb/stacked), and for
each test we were recreating the exact same test DBs. To speed things up
when there are multiple tests, this creates the test DBs once and shares
them between all tests.

Also: moved StringTest into AngleTest, it was a bit strange to have that
one test case in a test by itself.
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@pepeiborra has imported this pull request. If you are a Meta employee, you can view this in D78080251.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants